package com.poseidon.pokers.di;

import android.arch.lifecycle.ViewModel;

import com.poseidon.pokers.ui.main.MainActivityViewModel;
import com.poseidon.pokers.ui.splash.SplashActivityViewModel;
import com.then.architecture.di.BaseViewModelModule;
import com.then.architecture.di.ViewModelKey;

import dagger.Binds;
import dagger.Module;
import dagger.multibindings.IntoMap;

/**
 * Created by 42524 on 2018/1/12.
 */
@Module(includes = BaseViewModelModule.class)
public abstract class ViewModelModule {

    @Binds
    @IntoMap
    @ViewModelKey(SplashActivityViewModel.class)
    abstract ViewModel bindSplashActivityViewModel(SplashActivityViewModel splashActivityViewModel);

    @Binds
    @IntoMap
    @ViewModelKey(MainActivityViewModel.class)
    abstract ViewModel bindMainActivityViewModel(MainActivityViewModel mainActivityViewModel);

}
